<template>
    <div>
        <el-table border :data="list" style="width: 100%">
            <el-table-column prop="name" label="课程" />
            <el-table-column prop="laoshi" label="老师" />
            <el-table-column prop="scope" label="分数" />
           
<!-- <el-table-column prop="address" label="Address" /> -->
</el-table>
</div>
</template>
<script setup>
    import {
        onMounted,
        ref
    } from 'vue'
    import {
        zuoyeChakan
    } from "~/api/xm.js"
    import {
        useStore
    } from 'vuex'
    import {
        ElMessage,
        ElMessageBox
    } from 'element-plus'
    const store = useStore()
    const list = ref([])

    onMounted(() => {
        zuoyeChakan({
            studentId: store.state.studentId,
            type: 3
        }).then(res => {
            list.value = res.data
            console.log(res);
        })
    })
</script>